package com.wn.common.pojo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @BelongsProject: shared_parking
 * @BelongsPackage: com.wn.common.entity
 * @Author: 廖刚
 * @CreateTime: 2020-06-10 18:44
 * @Description: 用户实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable  {
    //用户id
    @ApiModelProperty(value = "用户id",name = "uId")
    private String uId;
    //用户名
    @ApiModelProperty(value = "用户名",name = "username")
    private String username;
    //密码
    @ApiModelProperty(value = "密码",name = "password")
    private String password;
    //年龄
    @ApiModelProperty(value = "年龄",name = "age")
    private Integer age;
    //真实姓名
    @ApiModelProperty(value = "真实姓名",name = "realname")
    private String realname;
    //性别  0---女    1--男
    @ApiModelProperty(value = "性别",name = "sex")
    private Integer sex;
    //角色表id
    @ApiModelProperty(value = "角色表id",name = "roleId")
    private Integer roleId;
    //余额
    @ApiModelProperty(value = "余额",name = "money")
    private BigDecimal money;
    //身份证号
    @ApiModelProperty(value = "身份证号",name = "idCard")
    private String idCard;
    //头像图片路径
    @ApiModelProperty(value = "头像图片路径",name = "headImage")
    private String headImage;
    //小区表id
    @ApiModelProperty(value = "小区表id",name = "villageId")
    private String villageId;
    //是否逻辑删除0存在，1删除
    @ApiModelProperty(value = "是否逻辑删除:0存在，1删除,2待审查，3已经审查，4审查不通过",name = "isDeleted")
    private Integer isDeleted;
    //创建用户id
    @ApiModelProperty(value = "创建用户id",name = "createUserId")
    private String createUserId;
    //更新用户id
    @ApiModelProperty(value = "更新用户id",name = "updateUserId")
    private String updateUserId;
    //创建时间
    @ApiModelProperty(value = "创建时间",name = "createtime")
    private String createtime;
    //更新时间
    @ApiModelProperty(value = "更新时间",name = "updatetime")
    private String updatetime;

    @ApiModelProperty(value = "身份证图片地址",name = "idcardImg")
    private String idcardImg;

    @ApiModelProperty(value = "审核状态",name = "status")
    private Integer status;

    @ApiModelProperty(value = "手机号码",name = "tel")
    private String tel;

    @ApiModelProperty(value = "抢租客车牌号码",name = "carNumber")
    private String carNumber;

    @ApiModelProperty(value = "账号状态 0表示正常，1表示被锁定",name = "code")
    private Integer code;

    @ApiModelProperty(value = "地址",name = "address")
    private String address;

    @ApiModelProperty(value = "邮箱",name = "email")
    private String email;


    public User(String uId, String username, Integer roleId) {
        this.uId = uId;
        this.username = username;
        this.roleId = roleId;
    }


}
